public class Types4 {
    /*
              赋值运算符
              +=，-=，*=，/=，%=，=
     */
    public static void main(String[] args) {
        int a = 3;
        a += 3;
        System.out.println(a);
        System.out.println("***".repeat(30));
        short b = 4;
        b += 1;
        //int类型
        //默认转换数据类型
         b =(short)(b + 1);
        //此处为强制转换，b=b+1为int类型，需要把int强制转化为short类型
        System.out.println(b);
        a *= b;
        System.out.println(a);


    }
}
